import request from "@/utils/request";
//新增
export function tbSysJournalismAdd(data) {

	return request({
		method: "post",
		url: "/tbSysJournalism/add",
		headers: {
			userButton: 'd8e20bcaea98466b9950765c709b4f61'
		},
		data,
	});
}
//删除
export function tbSysJournalismDelete(id) {
	return request({
		method: "get",
		url: "/tbSysJournalism/delete/" + id,
		headers: {
			userButton: '9ea71b6703af46898060896b0cf5f4b9'
		},
	});
}
//列表查询
export function tbSysJournalismQuery(params) {
	return request({
		method: "get",
		url: "/tbSysJournalism/queryPageList",
		headers: {
			userButton: '65c10022c28a475fa2561f89393fba17'
		},
		params,
	});
}
//查询详情
export function tbSysJournalismQueryInfo(data) {
	return request({
		method: "post",
		url: "/tbSysJournalism/queryInfo",
		headers: {
			userButton: '971a7252fcdc412d8cb508dfc8441fc8'
		},
		data,
	});
}
//修改 同时修改附件
export function tbSysJournalismUpdate(data) {
	return request({
		method: "post",
		url: "/tbSysJournalism/update",
		headers: {
			userButton: '65c10022c28a475fa2561f89393fba17'
		},
		data,
	});
}
//修改 不修改修改附件
export function tbSysJournalismUpdateInfo(data) {
	return request({
		method: "post",
		url: "/tbSysJournalism/updateInfo",
		headers: {
			userButton: '65c10022c28a475fa2561f89393fba17'
		},
		data,
	});
}
//发布
export function tbSysJournalismIssueNews(id) {
	return request({
		method: "get",
		url: "/tbSysJournalism/issueNews/" + id,
		headers: {
			userButton: '65c10022c28a475fa2561f89393fba17'
		},
	});
}

//上架
export function tbSysJournalismUpdateDel(data) {
	return request({
		method: "post",
		url: "/tbSysJournalism/updateDel",
		headers: {
			userButton: '65c10022c28a475fa2561f89393fba17'
		},
		data,
	});
}